package com.lq.demo.demo.mode.exp;

import com.sun.javafx.collections.MappingChange;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther: LQ
 * @Date: 2018/11/14 22:22
 * @Description:
 */
public class Test2 {
    private final char values[] = new char[0];

    public static void main(String[] args) {

        Map map = new HashMap();
        List list = new ArrayList();
        map.put(list, 1);
        Object o = map.get(list);
        list.add("sas");
        String s = "xxxx";
        System.out.println(o);
    }

    private int hash;

    public int hash2() {
        int h = hash;
        if (h != 0 && values.length > 0) {
            for (int i = 0; i < values.length; i++) {
                h = 31 * h + values[i];
            }
            hash = h;
        }
        return h;
    }
}
